import MyAxios from "./request";

import { appConfig } from "@/config";

import { interceptorsRequestConfig } from "./interceptorsHooks";


export const service = new MyAxios({
    baseURL: appConfig.baseUrl?.default,
    interceptors: interceptorsRequestConfig,
});

export const systemService = new MyAxios({
    baseURL: appConfig.baseUrl?.system,
    interceptors: interceptorsRequestConfig,
});

export default service;

export { service as defaultService };
